package com.lagou.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Tao Zheng
 * @classNmae: DemoController
 * @packageName: com.lagou.controller
 * @description:
 * @DATE: 2021/7/2 10:54
 */
@RestController
public class DemoController {

    @RequestMapping("/demo")
    // @RequestMapping(produces = "application/json; charset=utf-8")   若出现乱码则设置此值
    public String demo(){
        return "hello world";
    }
}
